<taglib name="Common\TagLib\Sohtml"/>
<form method="post" action="{:U('Admin/admin_edit_save')}" id="frm-edit">
    <table class="table-form">
        <tr>
            <th>用户名：</th><td><input type="text" name="user_name" value="{$data.user_name}" required/></td>
        </tr>
        <tr>
            <th>密码：</th><td><input type="password" name="password" value="{$data.user_name}" required/></td>
        </tr>
        <tr>
            <th>重复密码：</th><td><input type="password" name="repassword" value="{$data.user_name}" required/></td>
        </tr>
        <tr>
            <th>角色：</th><td><sohtml:treeselect name="role_id" datasource="role_list" value="{$data.role_id}" /></td>
        </tr>
        <tr>
            <th>状态：</th><td><sohtml:radio name="state" items="0=未审核;1=正常;2=禁用" value="{$data.state|default=0}" /></td>
        </tr>
    </table>
    <input type="hidden" name="id" value="{$data.id}" />
    <button type="submit">保存</button><button type="reset">重置</button>
</form>
<script src="__THEME__Crm/Default/Script/User/admin-edit.js" type="text/javascript"></script>